package c1759;

import java.util.Scanner;
 
public class C {
    public static void main(String[] args) {
        Scanner cin=new Scanner(System.in);
        int m=cin.nextInt();
        
        while(m-->0){
            int a=cin.nextInt();
            int b=cin.nextInt();
            int c=a+b;
            System.out.println(a+b);
        }
 
 
    }
}